package binder

import "mi/compiler/ast"

func IsTopLevelSymbol(symbol *Symbol) bool {
	return symbol.ValueDeclaration != nil && ast.IsSourceFile(symbol.ValueDeclaration.Parent())
}

func isAliasTagMappedStaticDeclaration(node ast.Node) bool {
	var realDeclaration = node.Parent().Parent()
	return ast.HasModifier(realDeclaration, ast.MFStatic)
}

